﻿@model List<Yeap.Kernel.Storage.Work>


@if (Model.Count > 0)
{
    

<table class="BaseTable" cellspacing="0" cellpadding="0">
    <tbody>
        <tr>
            <th>Заголовок</th>
            <th>Преподаватель</th>
            <th>Курс</th>
            <th>Год</th>
        </tr>
        @foreach (var work in Model)
        {
            <tr>
            <td><a href="@(Url.Action("Show", "Work", new RouteValueDictionary{{"id", work.Id}}))">@work.WorkTitle</a></td>
            <td>@work.User.FullName</td>
            <td>@work.Course</td>
            <td>@work.Year - @(work.Year+1)</td>
            </tr>
        }
    </tbody>
</table>
}
else
{
    <text>
        У этой работы нет истории
    </text>
}
